package cn.wolfcode.luowowo.common.domain;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
public class AjaxResult implements Serializable {
    private boolean success = true;
    private String msg;
    private Object result;

    //判断收藏是否登陆状态码
    private Integer code;

    public void mark(String msg){
        this.success = false;
        this.msg = msg;
    }

    public AjaxResult addObject(Object result){
        this.result=result;
        return this;
    }

}
